﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using MessyBrain.Models;

namespace MessyBrain.Controllers {
    [HandleError]
    public class HomeController : Controller {
        private MessyBrainEntities db;

        public HomeController() {
            db = new MessyBrainEntities();
        }

        public ActionResult Index() {
            ViewData.Model = db.Tasks.ToList();
            return View();
        }

        public ActionResult About() {
            return View();
        }
    }
}
